//config的设置是全局的
var fromDialog;
var url = "/img/type/page";
var el = "test";
var col = [ [ // 表头
	 {type:'numbers'},
	{
		type : "checkbox"
	}, {
		field : 'id',
		title : 'id',
		align:'center',
		hide : true,
		fixed : 'left'
	}, {
		field : 'name',
		align:'center',
		title : '名称'
	}, {
		field : 'sort',
		align:'center',
		title : '排序'
	}, {
		field : 'click',
		align:'center',
		title : '点击'
	}, {
		field : 'createTime',
		align:'center',
		title : '创建时间',
		sort : true
	}, {
		field : 'status',
		align:'center',
		title : '状态',
		unresize: true,
		templet : '#statusCheck'
	}, {
		fixed : 'right',
		align:'center',
		align : 'center',
		toolbar : '#tool'
	} ] ];
var global;
layui.use([ "global","layer","form"], function() {
	global = layui.global;
	var form = layui.form;
	var area = [ '800px', '450px' ];
	var shade = [ 0.8, '#393D49' ];
	global.init({url:"/img/type/",title:"类型",area:area,shade:shade});
	global.grid(col,null,el);
});

function  detail(id){
	
}

